package com.hjx.springloaded;

import java.util.concurrent.TimeUnit;

public class SpringLoadedExample {

    public static void  main(String[] args)  throws  Exception{

        Reload reload =  new  Reload();

        while  ( true ) {

            reload.load();

            TimeUnit.SECONDS.sleep(3);

        }

    }

    public static class  Reload {

        public void  load() {

            System.out.println("reload!");
            load1("load");

        }

        public void load1(String a) {
            System.out.println(a);
        }

    }

}
